package com.ruoyi.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 停车卡订单对象 parking_card_order
 * 
 * @author dongdong
 * @date 2025-09-09
 */
public class ParkingCardOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 停车场ID */
    @Excel(name = "停车场ID")
    private Long parkId;

    /** 车牌号码 */
    @Excel(name = "车牌号码")
    private String carNum;

    /** 车牌颜色 */
    @Excel(name = "车牌颜色")
    private Integer carNumColor;

    /** 车主姓名 */
    @Excel(name = "车主姓名")
    private String owner;

    /** 车主电话 */
    @Excel(name = "车主电话")
    private String ownerTel;

    /** 生效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validStartTime;

    /** 有效期（月） */
    @Excel(name = "有效期（月）")
    private Integer valid;

    /** 订单状态：1-待支付；2-已支付；3-已下发 */
    @Excel(name = "订单状态：1-待支付；2-已支付；3-已下发")
    private Integer orderStatus;

    /** 支付方式：1-微信小程序；2-支付宝小程序； */
    @Excel(name = "支付方式：1-微信小程序；2-支付宝小程序；")
    private Integer payMethod;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal payAmount;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;

    /** 支付渠道交易号 */
    @Excel(name = "支付渠道交易号")
    private String transNo;

    /** 支付用户id */
    @Excel(name = "支付用户id")
    private String uniqueId;

    /** 部门ID */
    private Long deptId;

    /** 删除标志（0存在 1删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getCarNumColor() {
        return carNumColor;
    }

    public void setCarNumColor(Integer carNumColor) {
        this.carNumColor = carNumColor;
    }

    public void setParkId(Long parkId)
    {
        this.parkId = parkId;
    }

    public Long getParkId() 
    {
        return parkId;
    }
    public void setCarNum(String carNum) 
    {
        this.carNum = carNum;
    }

    public String getCarNum() 
    {
        return carNum;
    }
    public void setOwner(String owner) 
    {
        this.owner = owner;
    }

    public String getOwner() 
    {
        return owner;
    }
    public void setOwnerTel(String ownerTel) 
    {
        this.ownerTel = ownerTel;
    }

    public String getOwnerTel() 
    {
        return ownerTel;
    }

    public void setValidStartTime(Date validStartTime)
    {
        this.validStartTime = validStartTime;
    }

    public Date getValidStartTime()
    {
        return validStartTime;
    }

    public void setValid(Integer valid)
    {
        this.valid = valid;
    }

    public Integer getValid()
    {
        return valid;
    }

    public void setOrderStatus(Integer orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus() 
    {
        return orderStatus;
    }
    public void setPayMethod(Integer payMethod) 
    {
        this.payMethod = payMethod;
    }

    public Integer getPayMethod() 
    {
        return payMethod;
    }
    public void setPayAmount(BigDecimal payAmount) 
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount() 
    {
        return payAmount;
    }
    public void setPayTime(LocalDateTime payTime)
    {
        this.payTime = payTime;
    }

    public LocalDateTime getPayTime()
    {
        return payTime;
    }
    public void setTransNo(String transNo) 
    {
        this.transNo = transNo;
    }

    public String getTransNo() 
    {
        return transNo;
    }
    public void setUniqueId(String uniqueId) 
    {
        this.uniqueId = uniqueId;
    }

    public String getUniqueId() 
    {
        return uniqueId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parkId", getParkId())
            .append("carNum", getCarNum())
            .append("owner", getOwner())
            .append("ownerTel", getOwnerTel())
            .append("validStartTime", getValidStartTime())
            .append("valid", getValid())
            .append("orderStatus", getOrderStatus())
            .append("payMethod", getPayMethod())
            .append("payAmount", getPayAmount())
            .append("payTime", getPayTime())
            .append("transNo", getTransNo())
            .append("uniqueId", getUniqueId())
            .append("remark", getRemark())
            .append("deptId", getDeptId())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
